package com.zhuanzhu.auth.controller;


import com.zhuanzhu.auth.feign.SystemUserInfoFeignClient;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Liwq
 */
@RestController
@RequiredArgsConstructor
public class LoginController {

    private final SystemUserInfoFeignClient systemUserInfoFeignClient;

    @PostMapping("/login")
    public String login() {
        return "login success";
    }

    @GetMapping("/systemUserInfo")
    public String systemUserInfo() {
        return systemUserInfoFeignClient.systemUserDetail();
    }
}
